package edu.sctu.renpingan.day20150510.texttwo;

/**
 * Created by user18 on 2015/5/10.
 */
public class TextOne {
    public TextTwo[] textFour;
    public int i;
    public void show(TextTwo[] textTwos){
        textTwos = textTwos;
        for(i=0;i<textTwos.length;i++){
            if (textTwos[i].getage()>20){
                System.out.println(textTwos[i].getage());
                System.out.println(textTwos[i].getname());
                System.out.println(textTwos[i].getsex());
            }else{
                System.out.println("未成年");
            }
        }
    }
}
